<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>上传</title>
</head>
<body>
	<form action="upload.action" enctype="multipart/form-data" method="post">
	    <s:file name="file" label="上传文件"/> <!-- 文件域使用struts2标签 否则上传文件名包含中文时 会报错 --> 
		<input type="submit" value="上传" />
	</form>
	<%-- <s:form action="upload.action" method="post" enctype="multipart/form-data">  
    <s:textfield id="title" name="file" label="文件标题"/>  
    <s:submit value="提交"/>  
    </s:form> --%>
</body>
</html>